The MUIA_Popasl_StartHook tag describes a hook function that will be called immediately before the requester is opened. It will receive a pointer to itself in A0, a pointer to the popasl object in A2 and a pointer to a taglist in A1. This taglist already contains some tags:
ASLFR/FO/..._Screen | : | parent screen |
ASLFR/FO/..._PrivateIDCMP | : | TRUE |
ASLFR/FO/..._InititalLeftEdge | : | left edge of popasl object |
ASLFR/FO/..._InititalTopEdge | : | bottom edge of popasl object |
ASLFR/FO/..._InititalWidth | : | width of popasl object, only present when |
the popup is called for the first time. |
You may add other tags to the list, but beware that the maximum allowed number of tags is 15. If you need more, use the TAG_MORE tag.
Since the asl requester will run in a seperate task, you should not change the state of the ASLFR_PrivateIDCMP tag!
If your hook returns TRUE, popasl class opens the requester with the given taglist. A return value of FALSE should be used when something went wrong, no requester will be opened in this case.
For file and font requester, popasl class will fall back to a default tag handling when no start hook is specified. A file name is automatically split into path and file part and passed to the requester a ASLFR_InitialFile and ASLFR_InitialDrawer. A font requester splits a string like ''topaz/8'' into font name and size for ASLFO_InitialName and ASLFO_InitialSize.